package com.sxg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxg.entity.SxgUserEntity;
import com.sxg.page.PageResult;
import com.sxg.query.SxgUserQuery;
import com.sxg.utils.code.AjaxResult;
import com.sxg.utils.code.Result;
import com.sxg.vo.SxgUserVO;
import com.sxg.vo.resp.ModifyPasswordReqVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 用户表
 *
 * @author 浪漫写尽歌谱 3298751420@qq.com
 * @since 1.0.0 2024-03-07
 */
public interface SxgUserService extends IService<SxgUserEntity> {

    PageResult<SxgUserVO> page(SxgUserQuery query);

    List<SxgUserEntity> getUserList();

    void save(SxgUserVO vo);

    void update(SxgUserVO vo);

    void delete(List<Long> idList);

    SxgUserEntity selectUserByUserName(Long username);

    AjaxResult avatar(MultipartFile file);

    AjaxResult updateInfo(SxgUserVO vo);

    AjaxResult modifyPassword(ModifyPasswordReqVo vo);

    SxgUserEntity selectUserByUserId(Long userId);

    SxgUserEntity getUserInfo();

}